Early release of a project to support raw key input in terminals. Currently, this supports the following raw keys across the major OSes:
- LShift - Left Shift (or either Shift on some OSes)
- LControl - Left Control
- Back - Backspace
- Space
- Tab
- Escape
- LeftArrow
- UpArrow
- RightArrow
- DownArrow
- PageUp
- PageDown
- Alt
Rather than using events, rawkey offers a way to scan to see if the key is pressed or not.
use ;
let mut rawkey = new;
loop